package com.qifenqian.turbot.config

/**
 * @author H
 * @createTime 2018/12/13 13:47
 * @description
 * @see
 * @since
 */
object Constant {

    const val BASE_URL = "http://192.168.1.71:8090/"
    /**
     * key="abc,file=
     */
    const val FILE_URL = "https://sitfdfs.qifenqian.com/"

    /**
     * 短信倒计时
     */
    const val COUNTDOWN_TIME = 60L

    const val AUTHORITY: String = "com.qifenqian.turbot.provider"

    const val SP_ACCOUNT = "restaurant_info"
    const val SP_KEY_RESTAURANT_ID = "restaurantId"
    const val SP_KEY_USER_CODE = "userCode"
    private const val SP_KEY_LOGIN = "isLogin"
    const val SP_KEY_PASSWORD = "password"

//    var isLogin = SpUtils.getInstance().getString(SP_KEY_PASSWORD, SP_ACCOUNT).isNotEmpty() //sp中有密码,则说明已经登录过
//    var restaurantId: Int = SpUtils.getInstance().getInt(SP_KEY_RESTAURANT_ID, -1, SP_ACCOUNT)
//    var restaurantId: Int = -1
//    var userCode: String = SpUtils.getInstance().getString(SP_KEY_USER_CODE, SP_ACCOUNT)

    /**
     * 注册流程走完关闭之前的所有界面,跳回登录页
     */
    const val TAG_ACTIVITY_COLLECTOR_REGISTER = "register"
    /**
     * 退出之后,跳转到登录界面,关闭MainActivity
     */
    const val TAG_ACTIVITY_COLLECTOR_LOGOUT = "logout"

}
